package main

import (
	"fmt"
)

type person struct {
	name string
	age  int
}

func main13() {
	p := person{"lennon", 25}
	fmt.Println(p)
	fmt.Println(p.name)

	fmt.Println(person{name: "wsy", age: 24})
	fmt.Println(person{name: "lennon"})
	fmt.Println(&person{name: "wsy", age: 24})

	s := &p
	fmt.Println(s.age)

	s.age = 18
	fmt.Println(s.age)
	fmt.Println(p.age)

}
